<template>
  <div>
    <z-radio-group v-model:value="dotPosition" style="margin-bottom: 8px">
      <z-radio-button value="top">Top</z-radio-button>
      <z-radio-button value="bottom">Bottom</z-radio-button>
      <z-radio-button value="left">Left</z-radio-button>
      <z-radio-button value="right">Right</z-radio-button>
    </z-radio-group>
    <z-carousel :dot-position="dotPosition">
      <div><h3>1</h3></div>
      <div><h3>2</h3></div>
      <div><h3>3</h3></div>
      <div><h3>4</h3></div>
    </z-carousel>
  </div>
</template>
<script setup>
import {ref} from 'vue'
const dotPosition = ref('top')
</script>

<style scoped>
/* For demo */
.ant-carousel :deep(.slick-slide) {
  text-align: center;
  height: 160px;
  line-height: 160px;
  background: #364d79;
  overflow: hidden;
}

.ant-carousel :deep(.slick-slide h3) {
  color: #fff;
}
</style>